package com.changer.common.service;

import java.util.Date;
import java.util.List;
import java.util.Set;


/**
 * @author Jiwei Guo
 *
 */
public interface CacheService {
	
	public Object get(String key);
	
	public void put(String key, Object value);
	
	public void put(String key, Object value, Date expire);
	
	public boolean remove(String key);

	public boolean removeKeys(Set keys);
	
	public void incr(String key);
	
	public boolean exists(String key);
	
	public void rpush(String key, String value);
	
	public List<String> getRpush(String key);

	public Set keys(String prefix);
}
